#### Makefile

all : test
ringpuffer.o: ringpuffer.c ringpuffer.h
	 gcc -c -o $@ ringpuffer.c

libRP.a: ringpuffer.o
	 ar rvu $@ ringpuffer.o
	 ranlib $@

test: libRP.a test.c
	gcc -o $@ test.c -L . -lRP

clean:
	rm *.o *.a *~ -f test
	
